
from PySide2.QtCore import *
from PySide2.QtWidgets import *
from maya.OpenMayaUI import *
from shiboken2 import wrapInstance


class MainWindow(QWidget):
    def __init__(self):
        super(MainWindow, self).__init__()
        self.setParent(wrapInstance(int(MQtUtil.mainWindow()), QWidget))
        self.setWindowFlags(Qt.Window)

        self.setWindowTitle(" DG Editor {}".format(0.1))

        self.main_layout = QVBoxLayout(self)
        self.main_layout.setContentsMargins(0, 0, 0, 0)
        self.tab = QTabWidget(self)
        self.main_layout.addWidget(self.tab)


def new():
    win = MainWindow()
    win.show()


win = new()
